<?php

namespace plugin\ycMassage\app\model;

use app\common\service\UploadService;

class MassageServiceCategory extends Model
{
    public function getThumbAttr($value)
    {
        return UploadService::url($value);
    }
    public function setThumbAttr($value)
    {
        return UploadService::path($value);
    }
    public static function getOptions($saas_appid)
    {
        $data = self::where(['saas_appid' => $saas_appid])->field('id as value,title as label')->select()->toArray();
        return $data;
    }
}
